<template>
	<view class="box">
		<view class="msg-detail-top">
			<view class='msg-topName'>
			 	花菜是怎样长成的（2019级4班） 
			</view>
			<view class='message-end'>
				<view class='yueduliang' style="margin-right: 26rpx;">
				 <image class="" style="color: #fff;" :src="require('../../static/imgs/youeryuan.png')">
				  </image>
				  悦园二小
				</view>
				<view class='yueduliang' style="margin-right: 26rpx;">
				  <image class="" :src="require('../../static/imgs/laoshi.png')">
				  </image>
				 丁老师
				</view>
				<view class='yueduliang'>
				  <image class="" src="../../static/imgs/shijian.png">
				  </image>
				   2021-10-23
				</view> 
			</view>
			<view class='msg-fenxi'>
				<view class='shiyanzhong'>
				  实验中
				</view>
			  <view class='mytext'>
				通过现场实地观察以及“一起耕种吧”平台数据的收集整理，分析各数据与花菜生长之间有何联系
			  </view>
			</view>
		</view>
		<view class='msg-detail-title'>
		  念念不忘、必有回响之三年级四班花菜耕种实验养护任务
		</view>
		<view class='message-end' style="padding-left:24rpx">
				<view class='yueduliang' style="margin-right: 26rpx;">
				  <image class="" :src="require('../../static/imgs/laoshi.png')">
				  </image>
				 丁老师
				</view>
				<view class='yueduliang'>
				  <image class="" src="../../static/imgs/shijian.png">
				  </image>
				   2021-10-23
				</view> 
		</view>
		<view class='msg-content'>
		  内容
		  内容
		</view>
		<view class='msg-pinglun'>
			<view class='msg-pinglun-title'>
				评论(3)
			</view>
			<view class='input'>
				<input class="uni-input" name="input" placeholder="发表你的看法" />
				<view class='fabiao'>
				  评论
				</view>
			</view>

			<view class='pinglun-item'>
				<image class="" src="https://kk.dilanhk.com/600x800.jpg"  lazy-load="false" binderror="" bindload="">
				</image>
				<view class='pinglun-item-det'>
					<view class='user-det'>
						<view class='userName'>
							用户名: 
						</view>
						<view class='userTalk'>
							说的话
						</view>
					</view>
					<view class='pinglun-item-det-time'>
						<image class="" src="../../static/imgs/shijian.png">
						</image>
						<view class='' style="margin-right: 18rpx;">
						  2020-10-23 12:00
						</view>
						<view class=''>
						  回复（0）
						</view>
						<view class='' style="margin-right: 12rpx;">
						  | 
						</view>
						<view class=''>
							<image class="" src="../../static/imgs/dianzan.png">
							</image>
							<text>0</text>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				mesInfo:{}
			};
		},
		onLoad(options) {
			const data1 = options.data
			 const data =	JSON.parse(data1)
			console.log(data);
			this.mesInfo = data
		}
	}
</script>

<style lang="scss">
	.msg-detail-top{
		padding:0 24rpx;
		// padding-left: 24rpx;
		height: 210rpx;
		width: 100%;
		background: linear-gradient(to right,#5475c1, #4358b4, #26299a);
		color: #fff;

		.msg-topName{
			font-size: 38rpx;
		}

		.msg-fenxi{
			display: flex;
			.shiyanzhong{
				margin-top: 10rpx;
				margin-right: 10rpx;
				width: 160rpx;
				height: 50rpx;
				line-height: 50rpx;
				border-radius: 10rpx;
				background-color: #f56c6c;
				text-align: center;
			}
			.mytext{
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 2;
			}
		}
	 }
	.msg-detail-title{
		font-size: 30rpx;
		font-weight: 700;
		margin-top: 16rpx;
		padding:0 24rpx;
		// overflow: hidden;
		// text-overflow: ellipsis;
		// display: -webkit-box;
		// -webkit-box-orient: vertical;
		// -webkit-line-clamp: 1;
	}

	.message-end{
				display: flex;
				font-size: 24rpx;
				margin-top: 16rpx;
				
				.yueduliang{
					vertical-align: middle;
					height: 50rpx;
					line-height: 50rpx;
					image{
						width: 35rpx;
						height: 35rpx;
						position: relative;
						top: 8rpx;
						margin-right: 6rpx;
					}
				}
	}
	.msg-content{
		padding:0 24rpx;
	}
	.msg-pinglun{
		.msg-pinglun-title{
			font-size: 48rpx;
			margin: 30rpx 16rpx 0;
			
		}
		.input{
			display: flex;
			.uni-input{
				padding: 10rpx 20rpx;
				width: 500rpx;
				height: 30rpx;
				border: 1px solid #ccc;
				margin: 30rpx 16rpx;
			}
			.fabiao{
				margin-top: 30rpx;
				width: 120rpx;
				height: 70rpx;
				line-height: 70rpx;
				background-color: #ecf5ff;
				border: 1px solid #b9dbff;
				color: #54a8ff;
				text-align: center;

			}
		}
		.pinglun-item{
			border-top: 1px solid #ccc;
			margin: 0 16rpx;
			display :flex;
			image{
				margin-top: 16rpx;
				width: 150rpx;
				height: 150rpx;
			}
			.pinglun-item-det{
				margin-left: 18rpx;
				margin-top: 36rpx;
				.user-det{
					display: flex;
					font-size: 32rpx;
					.userName{
					color: #489fff;
				}
				}
				.pinglun-item-det-time{
					height: 50rpx;
					line-height: 50rpx;
					display: flex;
					margin-top: 36rpx;
					vertical-align: middle;
					image{
						margin: 0;
						width: 35rpx;
						height: 35rpx;
						position: relative;
						 top: 8rpx;
						margin-right: 6rpx;
					}
				}

			}
			
		}
	}
</style>
